home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / hyper / hsc_source.lha / hsc / source / ugly / ustring.h < prev    next >
C/C++ Source or Header  |  1996-07-30  |  1KB  |  50 lines

  1. #ifndef UGLY_USTRING_H
  2. #define UGLY_USTRING_H
  3.  
  4. /*
  5.  * ugly/string.h
  6.  *
  7.  * additional string functions, header
  8.  *
  9.  * (W) by Tommy-Saftwörx in 1993,94,95
  10.  *
  11.  */
  12.  
  13. #include <stddef.h>
  14.  
  15. #include "utypes.h"
  16.  
  17. #define freestr( s ) ugly_freestr(s,__FILE__,__LINE__)
  18. #define ufreestr( s ) freestr(s),s=NULL
  19. #define strclone( s ) ugly_strclone(s,__FILE__,__LINE__)
  20. #define reallocstr( o,n ) ugly_reallocstr(o,n,__FILE__,__LINE__)
  21.  
  22. /* options for strenum */
  23. #define STEN_CASE   0           /* case sensitive search */
  24. #define STEN_NOCASE 1           /* case insensitive search */
  25.  
  26. /*
  27.  * external prototypes
  28.  */
  29.  
  30. #ifndef NOEXTERN_UGLY_USTRING_H
  31.  
  32. extern STRPTR upstr(STRPTR s);
  33. extern int upstrcmp(CONSTRPTR s1, CONSTRPTR s2);
  34. extern int upstrncmp(CONSTRPTR s1, CONSTRPTR s2, size_t n);
  35. extern void ugly_freestr(STRPTR s, STRPTR file, ULONG line);
  36. extern STRPTR ugly_strclone(CONSTRPTR oldstr, STRPTR file, ULONG line);
  37. extern void ugly_reallocstr(STRPTR * oldstr, CONSTRPTR newstr, STRPTR file, ULONG line);
  38.  
  39. extern STRPTR ustrrpbrk(CONSTRPTR str, CONSTRPTR set);
  40. extern LONG strenum(STRPTR str, STRPTR set, char sep, BYTE options);
  41.  
  42. extern STRPTR ch2str(const char ch);
  43. extern BOOL str2long(STRPTR s, LONG * num);
  44. extern STRPTR long2str(LONG num);
  45.  
  46. #endif /* NOEXTERN_UGLY_USTRING_H */
  47.  
  48. #endif /* UGLY_USTRING_H */
  49.  
  50.